package com.edu.cloud.facade;

import com.edu.cloud.facade.service.HelloService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableFeignClients(basePackages = {"com.edu.cloud.center.api","com.edu.cloud.facade"})
public class EduCloudWebApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext cxt=SpringApplication.run(EduCloudWebApplication.class, args);
        System.out.println("--------init---------");
        HelloService hs=cxt.getBean(HelloService.class);
        System.out.println("--------init---------"+hs.hello());
    }

}
